﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Traceability_Management.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class 读取111 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Xian_IsDel",
                table: "Slaughts_Xian");

            migrationBuilder.AddColumn<int>(
                name: "City_Id",
                table: "Slaughts_Xian",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "Sheng_Id",
                table: "Slaughts_City",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "City_Id",
                table: "Slaughts_Xian");

            migrationBuilder.DropColumn(
                name: "Sheng_Id",
                table: "Slaughts_City");

            migrationBuilder.AddColumn<bool>(
                name: "Xian_IsDel",
                table: "Slaughts_Xian",
                type: "tinyint(1)",
                nullable: true);
        }
    }
}
